package net.qunzhi.modules.historyspider;

import java.util.HashMap;

public class SpiderTimer {
    /***
     * 通过map定义全局然后来检查爬取
     */
    private static HashMap<String, String> map = new HashMap<String, String>();
    //用于定时设置的，如果执行定时则不能使用历史
    private static String EquipmentId;
    //为“active”时，24点的爬虫启动，“standby”表示结束
    private static String spider24;

    public static void setSpiderTimer(String time, String spiderTimerStatus, String equipment_id){
        map.put("time",time);
        map.put("spiderTimerStatus", spiderTimerStatus);
        //用于标记使用历史不能启动定时
        map.put("equipment_id",equipment_id);

    }

    public static void setEquipmentId(String equipment_id){
        EquipmentId = equipment_id;
    }

    public static String getEquipmentId(){return EquipmentId;}

    public static void setSpider24(String spider24) {
        SpiderTimer.spider24 = spider24;
    }

    public static String getSpider24() {
        return spider24;
    }


    public static HashMap<String, String> getSpiderTimer(){
        return map;
    }


}